// index.js
//   "tabBar": { "list": [{"text": "首页", "pagePath": "pages/index/index"},{"text": "我的", "pagePath": "pages/mine/mine"} ] },

const app = getApp();

Page({
  data: {
    haveCreateCollection: false,
    bgTextStyle: 'dark',
    scrollTop: '200rpx',
    bgColor: '#ff0000',
    bgColorTop: '#00ff00',
    bgColorBottom: '#0000ff',
    nbTitle: '公寓详情',
    nbLoading: false,
    nbFrontColor: '#000000',
    nbBackgroundColor: '#ffffff',
    pageStyle: "color:#333333",
    indicatorDots: false,
    vertical: false,
    autoplay: true,
    interval: 2000,
    duration: 500,
    images: [],
    info: {},
    notice: {title:''},
    ready: false
  },
  onShow(){
    let v = this;
    const info = app.globalData.info;
    const newData = {};
    newData.images = [{img: info.room_img}];
    newData.info = info;
    console.log("info", info);
    v.setData(newData);
  },
  navigateToSub(ev) {
    let v = this;
    console.log('navigateToSub', ev);
    wx.navigateTo({ url: "/pages/rent/submit"});
  },

});
